{% extends "layout.html" %}
{% block content %}
        <div class="well span6 offset3">
          {% if "Directory" not in title %}
          <h2>Results for "<em>query</em>"</h2>
          {% else %}
          <h2>Directory of floors and rooms</h2>
          {% endif %}
          
          {% for floor in floors %}
          <div class="level-group">
            <h3><a href="/floor/{{ floor.level }}">Level {{ floor.level }}</a></h3>
            <ul>
              {% for room in rooms %}
                {# ifequal room.floor_id floor.floor_id #}
                <li><a href="{% url bob.room.views.index room.room_id %}">Room {{ room.room_id }}</a></li>
                {# endifequal #}
              {% endfor %}
            </ul>
          </div>
          {% endfor %}
        </div>
{% endblock %}